import request from '@/axios'
import { taskType } from '@/api/task/types'

export const findTaskPageApi = (data: taskType): Promise<IResponse> => {
  return request.post({ url: '/task/listPage', data })
}
export const createTaskApi = (data: taskType): Promise<IResponse> => {
  return request.post({ url: '/task/create', data })
}
export const deleteTaskApi = (data: taskType): Promise<IResponse> => {
  return request.post({ url: '/task/delate', data })
}
